﻿@using 检查页面开放.Models
@model dynamic

<script src="~/Scripts/jquery-1.10.2.js"></script>
@{
    ViewBag.Title = "检查js、aspx是否还有用";
    Layout = null;
    var checkNoUserFileModel = Model as CheckNoUserFileModel;
    DateTime start = ViewBag.Start;
    DateTime end = ViewBag.End;
}

<div>
    检查js、aspx是否未使用数量(js:@checkNoUserFileModel.AllJsName.Count(t => t.PpCount == 0) aspx:@checkNoUserFileModel.AllAspxName.Count(t => t.PpCount == 0)) <a href="#" onclick="showInfoDiv()">展示</a>
</div>
<div>开始：@start.ToString() 结束：@end.ToString()</div>
<div id="InfoDiv">
    <div>js未使用</div>
    @{
        foreach (JsClass jsClass in checkNoUserFileModel.AllJsName.Where(t => t.PpCount == 0))
        {
            <div>@jsClass.Name</div>
        }
    }
    <div>aspx未使用</div>
    @{
        foreach (AspxClass aspxClass in checkNoUserFileModel.AllAspxName.Where(t => t.PpCount == 0))
        {
            <div>@aspxClass.Name</div>
        }
    }
</div>
<script>
    $(document).ready(function () {

    });
    function showInfoDiv() {
        $("#InfoDiv").toggle();
    }
</script>

